package com.ht.modules.utils;

public class DicConstants {

    /**
     * 删除标记-0-未删除
     */
    public static final String DEL_FLAG_WSC = "0";
    /**
     * 删除标记-1-已删除
     */
    public static final String DEL_FLAG_YSC = "1";

    /**
     * 用户角色-admin-超级管理员
     */
    public static final String USER_ROLE_ADMIN = "admin";

    /**
     * 是否状态-0-否
     */
    public static final String WHETHER_FOU = "0";
    /**
     * 是否状态-1-是
     */
    public static final String WHETHER_SHI = "1";

    /**
     * 部门级别-1-一级
     */
    public static final String DEPART_ORG_TYPE_1 = "1";
    /**
     * 部门级别-2-二级
     */
    public static final String DEPART_ORG_TYPE_2 = "2";
    /**
     * 部门级别-3-三级
     */
    public static final String DEPART_ORG_TYPE_3 = "3";

    /**
     * 登录时密码错误次数存放Redis前缀-LOGIN_ERROR_TIME
     */
    public static final String LOGIN_ERROR_TIME = "LOGIN_ERROR_TIME";

    /**
     * 登录异常状态-1-已封禁
     */
    public static final String LOGIN_BANNED_STATE_YFJ = "1";
    /**
     * 登录异常状态-2-已解封
     */
    public static final String LOGIN_BANNED_STATE_YJF = "2";

    /**
     * 用户账号状态-1-正常
     */
    public static final Integer SYSUSER_STATUS_NORMAL = 1;
    /**
     * 用户账号状态-2-冻结
     */
    public static final Integer SYSUSER_STATUS_FROZEN = 2;

    // 正常or异常
    public static final String IS_NORMAL_NORMAL = "1";
    public static final String IS_NORMAL_ABNORMAL = "2";

    /**
     * 流程状态-1-待提交
     */
    public static final String BPM_STATUS_DTJ = "1";
    /**
     * 流程状态-2-处理中
     */
    public static final String BPM_STATUS_CLZ = "2";
    /**
     * 流程状态-3-已完成
     */
    public static final String BPM_STATUS_YWC = "3";
    /**
     * 流程状态-4-已作废
     */
    public static final String BPM_STATUS_YZF = "4";

    // 点位信息数据来源（1-设备；2-消防主机）
    public static final String POINT_DATA_FROM_EQU = "1";
    public static final String POINT_DATA_FROM_FIRE = "2";

    // 方案来源
    public static final String PLAN_FROM_HAND = "1";
    public static final String PLAN_FROM_INFO = "2";
    public static final String PLAN_FROM_HAZOP = "2";

    // 抑制状态
    public static final String RESTRAIN_STATUS_NO = "1";
    public static final String RESTRAIN_STATUS_YES = "2";

    // 报警处置状态
    public static final String DISPOSE_STATUS_DCZ = "1";
    public static final String DISPOSE_STATUS_YCZ = "2";

    // 报警分析-年月周分析
    public static final String ALARM_ANALYSIS_CYCLE_YEAR = "1";
    public static final String ALARM_ANALYSIS_CYCLE_MONTH = "2";
    public static final String ALARM_ANALYSIS_CYCLE_WEEK = "3";
    public static final String ALARM_ANALYSIS_CYCLE_DAY = "4";

    // MODBUS-RTU:通讯类型
    public static final String COMMUNICATION_TYPE_MODBUS_RTU = "0";
    public static final String COMMUNICATION_TYPE_MODBUS_TCP = "1";
    public static final String COMMUNICATION_TYPE_OPC_DA = "2";
    public static final String COMMUNICATION_TYPE_OPC_UA = "3";

    // MODBUS-RTU读写类型
    // 读取[01 Coil Status 0x]类型 开关数据
    public static final String MODBUS_RTU_READ_TYPE_COIL_STATUS = "1";
    // RTU-读取[02 Input Status 1x]类型 开关数据
    public static final String MODBUS_RTU_READ_TYPE_INPUT_STATUS = "2";
    // RTU-读取[03 Holding Register类型 2x]模拟量数据
    public static final String MODBUS_RTU_READ_TYPE_HOLDING_REGISTER = "3";
    // RTU-读取[04 Input Registers 3x]类型 模拟量数据
    public static final String MODBUS_RTU_READ_TYPE_INPUT_REGISTERS = "4";

    // 推送阶段
    public static final String PUSH_STAGE1 = "1";
    public static final String PUSH_STAGE2 = "2";
    public static final String PUSH_STAGE3 = "3";

    // 推送状态
    public static final String PUSH_STATUS_WAIT = "1";
    public static final String PUSH_STATUS_SUCCESS = "2";
    public static final String PUSH_STATUS_ERROR = "3";

    // 阅读状态
    public static final String READ_STATUS_UNREAD = "1";
    public static final String READ_STATUS_READ = "2";

    // 点位配置更新状态
    public static final String POINT_CONFIG_AUTO_UPDATE_STATUS_NO = "1";
    public static final String POINT_CONFIG_AUTO_UPDATE_STATUS_DOING = "2";

    public static final String CONNECT_STATUS_LX = "1"; //离线

    public static final String CONNECT_STATUS_ZX = "2"; //在线

    public static final String HANDLE_STATUS_WCL = "1"; //未处理
    public static final String HANDLE_STATUS_YCL = "2"; //已处理
    public static final String HANDLE_STATUS_YHL = "3"; //已忽略

    public static final String ALARM_CONDITION_GGB = "PVHIHI"; //高高报
    public static final String ALARM_CONDITION_GB = "PVHIGH"; //高报
    public static final String ALARM_CONDITION_DB = "PVLOW"; //低报
    public static final String ALARM_CONDITION_DDB = "PVLOLO"; //低低报


    public static final String ALARM_STATUS_GGB = "1"; //高高报

    public static final String ALARM_STATUS_GB = "2"; //高报

    public static final String ALARM_STATUS_DB = "3"; //低报

    public static final String ALARM_STATUS_DDB = "4"; //低低报

    public static final String ALARM_STATUS_ZC = "9"; //正常

    public static final String MONITOR_STATUS_ZC = "1"; //正常

    public static final String MONITOR_STATUS_YC = "2"; //异常

    public static final String POINT_FROM_DCS = "1"; //DCS
    public static final String POINT_FROM_GDS = "2"; //GDS

    public static final String POING_CONFIG_COLUMN_DW = "1"; //单位
    public static final String POING_CONFIG_COLUMN_LCXX = "2"; //量程下限
    public static final String POING_CONFIG_COLUMN_LCSX = "3"; //量程上限
    public static final String POING_CONFIG_COLUMN_GGBSDZ = "4"; //高高报设定值
    public static final String POING_CONFIG_COLUMN_GGBSQLX = "5"; //高高报死区类型
    public static final String POING_CONFIG_COLUMN_GGBSQZ = "6"; //高高报死区值
    public static final String POING_CONFIG_COLUMN_GBSDZ = "7"; //高报设定值
    public static final String POING_CONFIG_COLUMN_GBSQLX = "8"; //高报死区类型
    public static final String POING_CONFIG_COLUMN_GBSQZ = "9"; //高报死区值
    public static final String POING_CONFIG_COLUMN_DBSDZ = "10"; //低报设定值
    public static final String POING_CONFIG_COLUMN_DBSQLX = "11"; //低报死区类型
    public static final String POING_CONFIG_COLUMN_DBSQZ = "12"; //低报死区值
    public static final String POING_CONFIG_COLUMN_DDBSDZ = "13"; //低低报设定值
    public static final String POING_CONFIG_COLUMN_DDBSQLX = "14"; //低低报死区类型
    public static final String POING_CONFIG_COLUMN_DDBSQZ = "15"; //低低报死区值

    public static final String DEAD_BAND_UNIT_BFB = "0"; //百分比
    public static final String DEAD_BAND_UNIT_LCZ = "1"; //量程值

    // 操作类型 0-中心抑制，1-装置抑制，2-单元抑制，3-点位抑制
    public static final String OPERATION_TYPE_CENTRE = "0";
    public static final String OPERATION_TYPE_DEVICE = "1";
    public static final String OPERATION_TYPE_UNIT = "2";
    public static final String OPERATION_TYPE_POINT = "3";


    public static final String EVENT_CATEGORY_GCBJ = "16385"; //过程报警
    public static final String EVENT_CATEGORY_XTBJ = "16387"; //系统报警

    public static final String SYS_UNIT_CODE_PREFIX = "/System Components/";

}
